package main

import (
	"express/dao"
	"express/global"
	"express/model"
	"github.com/gin-gonic/gin"
	_ "gorm.io/driver/mysql"
	"net/http"
)

func main() {
	r := gin.Default()
	//获取所有单号
	//routers.Users(r)
	dao.InitDB()
	//j := &model.BaiduFilePath{}
	//z := &model.Category{}
	global.DB.AutoMigrate(&model.BaiduFilePath{}, &model.Category{})
	//global.DB.AutoMigrate(&BaiduNetdiskModel.BaiduFilePath{}, &CategoryModel.Category{})
	r.GET("/", func(c *gin.Context) {
		c.String(http.StatusOK, "成功了")
	})
	r.Run(":9988")
}
